@extends('layouts.master')

@section('title')
    商品管理——木投网商城管理后台
@stop

@section('app_css')
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/resource/css/style.css">
    <link rel="stylesheet" href="/resource/css/dataTables.bootstrap.css">
@stop

@section('app_js')
    <script src="/resource/js/jquery-1.11.3.min.js"></script>
    <script src="/resource/js/bootstrap.min.js"></script>
    <script src="/resource/js/jquery.dataTables.min.js"></script>
    <script src="/resource/js/dataTables.bootstrap.min.js"></script>
    <script src="/resource/js/jquery.twbsPagination.js"></script>
    <script src="/resource/js/date.js"></script>
    <script>
        /*全选*/
        $(function () {
            $("#all").click(function () {
                var checked_status = this.checked;
                $("input[name=demo]").each(function () {
                    this.checked = checked_status;
                });
            });
        });
    </script>
@stop

@section('content')

    @include('common.nav')
<div class="container-fluid">
    <div class="row" id="navLeft">
        @include('common.product_nav')
        <div class="col-lg-10">
            <div class="navbottom">
              <span>您的位置：</span>商品 > 品牌管理
            </div>
            <div class="contentNav">
              <ul>
                <li>品牌</li>
                <li class="btn btn-default active"><a href="/show_goods_brand">管理</a></li>
                <li class="btn btn-default"><a href="/add_goods_brand">新增</a></li>
                <li class="btn btn-default"><a href="brand_dd.html">待审核</a></li>
              </ul>
            </div>
            <hr>
            <div class="contentMember">
              <div class="contentMember_top">
                <div class="contentMember_topP">
                  <form action="">
                      <span style="float:left;line-height:34px;margin-right:20px;">品牌名称</span>
                      <input type="text" class="form-control" style="width:190px;float:left;margin-right:10px;">
                      <span style="float:left;line-height:34px;margin-right:20px;">所属分类</span>
                      <input type="text" class="form-control" style="width:190px;float:left;margin-right:10px;">
                      <a href="#" class="btn btn-default">搜索</a>
                  </form> 
                  <hr>
                </div>
              </div>
              <div style="clear:both"></div>
              <div class="tishi">
                <div class="tishiTitle">操作提示</div>
                <div class="tishiSpan">
                  <ul>
                    <li>当店主添加商品时可选择商品品牌，用户可根据品牌查询商品列表</li>
                    <li>被推荐品牌，将在前台品牌推荐模块处显示</li>
                    <li>在品牌列表页面，品牌将按类别分组，即具有相同类别的品牌为一组，品牌类别与品牌分类无联系</li>
                  </ul>
                </div>
              </div>
              <table class="table table-striped table-bordered bootstrap-datatable datatable table-hover" id="example">
                <thead>
                  <tr>
                    <th></th>
                    <th>品牌名称</th>
                    <th>成立时间</th>
                    <th>操作</th>
                  </tr>
                </thead>
                <tbody>
                @foreach($brands as $k => $brand)
                  <tr>
                      <td><input type="checkbox" name="demo"></td>
                      <th>{{ $brand->brand_name }}</th>
                      <th>{{ $brand->start_time }}</th>
                    <td><a href="/edit_goods_brand?brand_id={{ $brand->brand_id }}">编辑</a> | <a href="/delete_goods_brand?brand_id={{ $brand->brand_id }}">删除</a></td>
                  </tr>
                    @endforeach
                </tbody>
              </table>
            </div>
            {{ $brands->links() }}
        </div>
    </div>
</div>
@stop